#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <assert.h>
#define MAX 20

void triangle(int l)
{
    assert(l >= 2 && l <= MAX);
    char triangle[MAX][MAX] = { 0 };
    for (int i = 0; i < l; i++)
    {
        for (int j = 0; j < l; j++)
        {
            if (l - 1 - i <= j)
            {
                triangle[i][j] = '*';
            }
            else
            {
                triangle[i][j] = ' ';
            }
        }
    }

    for (int i = 0; i < l; i++)
    {
        for (int j = 0; j < l; j++)
        {
            printf("%c ", triangle[i][j]);
        }
        printf("\n");
    }
}

int main()
{
    int l = 0;
    while (scanf("%d", &l) != EOF)
    {
        triangle(l);
    }
    return 0;
}